package com.augurit.wf.mgmt.web.form;

import java.util.Date;
import java.util.List;

import com.augurit.common.base.form.BaseForm;
import com.augurit.wf.common.entity.Jbpm4HistActInst;
import com.augurit.wf.common.form.jbpm.ActivityForm;
import com.augurit.wf.common.form.jbpm.TransitionForm;

public class Jbpm4HistActInstForm extends BaseForm{
	
	
	//属性
	private Long dbid;
	private String clazz;
	private Long dbversion;
	private Long hisProcInstDbid;
	private String type;
	private String executionId;
	private String activityName;
	private Date startTime;
	private Date endTime;
	private Long duration;
	private String transitionName;
	private String nextIdx;
	private Long hisTaskDbid;
	
	//扩展
	private String destActivityName;	//要跳转的目标节点名称
	private String destActivityChineseName;	//要跳转的目标节点中文名称
	
	private List<TransitionForm> nextTransitions;	//下一跳转列表
	private List<ActivityForm> freeActivities;		//自由流节点列表
	
	private String handleComments;   //审批意见
	
	private boolean isDirectSend = false;//是否直接发送
	
	private String message; //返回给前台的提示信息，比如发送完成
	
	private boolean needSelectAssignee = false; //发送时是否需要选择参与者
	private String defaultSendAssignees; //默认发送参与者
	private String assigneeName;
	
	//普通构造方法
	public Jbpm4HistActInstForm(){}
	
	//entity转化为form的构造方法
	public Jbpm4HistActInstForm(Jbpm4HistActInst entity){
		this.dbid=entity.getDbid();
		this.clazz=entity.getClazz();
		this.dbversion=entity.getDbversion();
		this.hisProcInstDbid=entity.getHisProcInstDbid();
		this.type=entity.getType();
		this.executionId=entity.getExecutionId();
		this.activityName=entity.getActivityName();
		this.startTime=entity.getStartTime();
		this.endTime=entity.getEndTime();
		this.duration=entity.getDuration();
		this.transitionName=entity.getTransitionName();
		this.nextIdx=entity.getNextIdx();
		this.hisTaskDbid=entity.getHisTaskDbid();
	}
	
	
	//get和set方法
	public Long getDbid() {
		return dbid;
	}
	public void setDbid(Long dbid) {
		this.dbid = dbid;
	}
	public String getClazz() {
		return clazz;
	}
	public void setClazz(String clazz) {
		this.clazz = clazz;
	}
	public Long getDbversion() {
		return dbversion;
	}
	public void setDbversion(Long dbversion) {
		this.dbversion = dbversion;
	}
	public Long getHisProcInstDbid() {
		return hisProcInstDbid;
	}
	public void setHisProcInstDbid(Long hisProcInstDbid) {
		this.hisProcInstDbid = hisProcInstDbid;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getExecutionId() {
		return executionId;
	}
	public void setExecutionId(String executionId) {
		this.executionId = executionId;
	}
	public String getActivityName() {
		return activityName;
	}
	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Long getDuration() {
		return duration;
	}
	public void setDuration(Long duration) {
		this.duration = duration;
	}
	public String getTransitionName() {
		return transitionName;
	}
	public void setTransitionName(String transitionName) {
		this.transitionName = transitionName;
	}
	public String getNextIdx() {
		return nextIdx;
	}
	public void setNextIdx(String nextIdx) {
		this.nextIdx = nextIdx;
	}
	public Long getHisTaskDbid() {
		return hisTaskDbid;
	}
	public void setHisTaskDbid(Long hisTaskDbid) {
		this.hisTaskDbid = hisTaskDbid;
	}

	public String getDestActivityName() {
		return destActivityName;
	}

	public void setDestActivityName(String destActivityName) {
		this.destActivityName = destActivityName;
	}

	public String getDestActivityChineseName() {
		return destActivityChineseName;
	}

	public void setDestActivityChineseName(String destActivityChineseName) {
		this.destActivityChineseName = destActivityChineseName;
	}

	public List<TransitionForm> getNextTransitions() {
		return nextTransitions;
	}

	public void setNextTransitions(List<TransitionForm> nextTransitions) {
		this.nextTransitions = nextTransitions;
	}

	public List<ActivityForm> getFreeActivities() {
		return freeActivities;
	}

	public void setFreeActivities(List<ActivityForm> freeActivities) {
		this.freeActivities = freeActivities;
	}

	public String getHandleComments() {
		return handleComments;
	}

	public void setHandleComments(String handleComments) {
		this.handleComments = handleComments;
	}

	public boolean isDirectSend() {
		return isDirectSend;
	}

	public void setDirectSend(boolean isDirectSend) {
		this.isDirectSend = isDirectSend;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isNeedSelectAssignee() {
		return needSelectAssignee;
	}

	public void setNeedSelectAssignee(boolean needSelectAssignee) {
		this.needSelectAssignee = needSelectAssignee;
	}

	public String getDefaultSendAssignees() {
		return defaultSendAssignees;
	}

	public void setDefaultSendAssignees(String defaultSendAssignees) {
		this.defaultSendAssignees = defaultSendAssignees;
	}

	public String getAssigneeName() {
		return assigneeName;
	}

	public void setAssigneeName(String assigneeName) {
		this.assigneeName = assigneeName;
	}
	
}
